<%--
  Created by IntelliJ IDEA.
  User: !
  Date: 2021/7/20
  Time: 16:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <style>
        .fdt{
            width: 30px;
            display: inline-block;
        }
    </style>
</head>
<body>
<div class="layui-container">
    <h1>作业完成情况</h1>

    <form action="/classes/select">
        <input type="text" name="sid">
        <input type="date" name="rq">
        <input type="submit" value="查询">
    </form>
    <a href="/add.jsp" style="color: black">添加</a>

    <table class="layui-table">
        <thead>
        <tr>
            <th>姓名</th>
            <c:forEach begin="1" end="31" var="s">
                <th>${s}</th>
            </c:forEach>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${info}" var="obj">
            <tr>
                <td>${obj.key}</td>
                <c:forEach items="${obj.value}" var="k">
                <c:if test="${k==1}">
                    <td><i class="layui-icon layui-icon-face-cry"></i></td>
                </c:if>
                <c:if test="${k==0}">
                    <td></td>
                </c:if>
                </c:forEach>
            </tr>
            </c:forEach>
        </tbody>
    </table>
    </div>
</body>
<script src="layui/layui.js"></script>
</html>
